package com.niit.config;

import com.niit.beans.Dog;
import com.niit.beans.Sheep;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

@Configuration
public class BeanConfiguration2 {
    @Bean("sheep,sheeep")
    @Scope("prototype")
    public Sheep sheep(){
        return new Sheep();
    }
}
